From 360af43fefc6bccc463e437ce72d70257e76a59d Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 20 May 2007 20:38:04 +0000 Subject: [PATCH] Add support (currently only a reader) for Garmin POI's (.gpi files). --- garmin_poi.h | 112 ++++++++ reference/garmin_poi.gpi | Bin 0 -> 7776 bytes reference/garmin_poi.gpx | 526 ++++++++++++++++++++++++++++++++++++++ reference/garmin_poi2.gpx | 526 ++++++++++++++++++++++++++++++++++++++ testo | 9 + 5 files changed, 1173 insertions(+) create mode 100644 garmin_poi.h create mode 100644 reference/garmin_poi.gpi create mode 100644 reference/garmin_poi.gpx create mode 100644 reference/garmin_poi2.gpx diff --git a/garmin_poi.h b/garmin_poi.h new file mode 100644 index 000000000..1811cc84d --- /dev/null +++ b/garmin_poi.h @@ -0,0 +1,112 @@ +#ifndef GARMIN_POI_H +#define GARMIN_POI_H + +static char gpi_bitmap[] = { + 0x00,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x08,0x00,0x00,0x00,0x40,0x02,0x00,0x00, + 0x2c,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0xff,0x00,0xff,0x00,0x01,0x00,0x00,0x00, + 0x6c,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x00,0x7e,0x7e,0x7e, + 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e, + 0x7e,0x7e,0x00,0x7e,0x00,0x7e,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f, + 0x7f,0x7f,0x59,0x67,0x65,0x7f,0x7f,0x7f,0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x7f,0x7f, + 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x74,0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x5d,0x1d,0x20,0x49,0x3d,0x3d,0x5b,0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x60,0x5c, + 0x7a,0x1a,0x1a,0x3b,0x38,0x5d,0x0e,0x59,0x7d,0x3c,0x72,0x37,0x78,0x60,0x60,0x28, + 0x4f,0x71,0x00,0x7e,0x00,0x7e,0x7e,0x43,0x33,0x69,0x69,0x17,0x22,0x7d,0x2c,0x27, + 0x2a,0x2b,0x7d,0x32,0x61,0x4f,0x4f,0x36,0x3f,0x4c,0x00,0x7e,0x00,0x7e,0x7f,0x7e, + 0x3a,0x2b,0x2b,0x45,0x1a,0x40,0x47,0x7d,0x37,0x41,0x12,0x25,0x5e,0x46,0x46,0x4d, + 0x62,0x53,0x00,0x7e,0x00,0x7e,0x7f,0x7e,0x73,0x71,0x71,0x6a,0x13,0x39,0x1b,0x45, + 0x62,0x50,0x3a,0x7e,0x7e,0x7b,0x7b,0x5c,0x5b,0x49,0x00,0x7e,0x00,0x7e,0x7f,0x7e, + 0x59,0x01,0x01,0x06,0x64,0x35,0x4e,0x3e,0x26,0x21,0x66,0x7f,0x45,0x04,0x04,0x11, + 0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x7f,0x7e,0x59,0x01,0x01,0x06,0x64,0x35,0x4e,0x3e, + 0x26,0x21,0x66,0x7f,0x45,0x04,0x04,0x11,0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x7f,0x7e, + 0x7c,0x0a,0x0a,0x0f,0x65,0x7d,0x74,0x71,0x7c,0x7e,0x7e,0x7e,0x58,0x03,0x03,0x2b, + 0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x7f,0x7f,0x7f,0x6d,0x6d,0x6f,0x2d,0x1d,0x63,0x7a, + 0x7e,0x75,0x5d,0x19,0x32,0x70,0x70,0x6f,0x7f,0x7f,0x00,0x7e,0x00,0x7e,0x7f,0x7f, + 0x7f,0x7f,0x7f,0x7e,0x7d,0x53,0x35,0x0b,0x1f,0x0e,0x34,0x5a,0x7f,0x7f,0x7f,0x7f, + 0x7f,0x7f,0x00,0x7e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x7f,0x7e,0x7e,0x7e, + 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e, + 0x7e,0x7e,0x7e,0x7e,0x0a,0x0a,0x0a,0x00,0x0b,0x0b,0x0b,0x00,0x16,0x16,0x16,0x00, + 0x1f,0x1f,0x1f,0x00,0x28,0x28,0x28,0x00,0x2d,0x2d,0x2d,0x00,0x35,0x35,0x35,0x00, + 0x3d,0x3d,0x3d,0x00,0x40,0x40,0x40,0x00,0x41,0x41,0x41,0x00,0x43,0x43,0x43,0x00, + 0x46,0x46,0x46,0x00,0x47,0x47,0x47,0x00,0x4b,0x4b,0x4b,0x00,0x4e,0x4e,0x4e,0x00, + 0x53,0x53,0x53,0x00,0x54,0x54,0x54,0x00,0x56,0x56,0x56,0x00,0x59,0x59,0x59,0x00, + 0x5a,0x5a,0x5a,0x00,0x5f,0x5f,0x5f,0x00,0x60,0x60,0x60,0x00,0x62,0x62,0x62,0x00, + 0x63,0x63,0x63,0x00,0x6a,0x6a,0x6a,0x00,0x74,0x74,0x74,0x00,0x75,0x75,0x75,0x00, + 0x76,0x76,0x76,0x00,0x78,0x78,0x78,0x00,0x79,0x79,0x79,0x00,0x7a,0x7a,0x7a,0x00, + 0x7c,0x7c,0x7c,0x00,0x7d,0x7d,0x7d,0x00,0x7e,0x7e,0x7e,0x00,0x80,0x80,0x80,0x00, + 0x81,0x81,0x81,0x00,0x82,0x82,0x82,0x00,0x83,0x83,0x83,0x00,0x84,0x84,0x84,0x00, + 0x85,0x85,0x85,0x00,0x87,0x87,0x87,0x00,0x88,0x88,0x88,0x00,0x89,0x89,0x89,0x00, + 0x8a,0x8a,0x8a,0x00,0x8b,0x8b,0x8b,0x00,0x8e,0x8e,0x8e,0x00,0x90,0x90,0x90,0x00, + 0x91,0x91,0x91,0x00,0x92,0x92,0x92,0x00,0x94,0x94,0x94,0x00,0x95,0x95,0x95,0x00, + 0x96,0x96,0x96,0x00,0x97,0x97,0x97,0x00,0x98,0x98,0x98,0x00,0x9b,0x9b,0x9b,0x00, + 0x9c,0x9c,0x9c,0x00,0x9d,0x9d,0x9d,0x00,0xa0,0xa0,0xa0,0x00,0xa1,0xa1,0xa1,0x00, + 0xa2,0xa2,0xa2,0x00,0xa4,0xa4,0xa4,0x00,0xa6,0xa6,0xa6,0x00,0xa7,0xa7,0xa7,0x00, + 0xab,0xab,0xab,0x00,0xac,0xac,0xac,0x00,0xad,0xad,0xad,0x00,0xae,0xae,0xae,0x00, + 0xaf,0xaf,0xaf,0x00,0xb0,0xb0,0xb0,0x00,0xb1,0xb1,0xb1,0x00,0xb2,0xb2,0xb2,0x00, + 0xb3,0xb3,0xb3,0x00,0xb4,0xb4,0xb4,0x00,0xb5,0xb5,0xb5,0x00,0xb6,0xb6,0xb6,0x00, + 0xb7,0xb7,0xb7,0x00,0xb9,0xb9,0xb9,0x00,0xbb,0xbb,0xbb,0x00,0xbc,0xbc,0xbc,0x00, + 0xbe,0xbe,0xbe,0x00,0xbf,0xbf,0xbf,0x00,0xc0,0xc0,0xc0,0x00,0xc1,0xc1,0xc1,0x00, + 0xc2,0xc2,0xc2,0x00,0xc3,0xc3,0xc3,0x00,0xc4,0xc4,0xc4,0x00,0xc5,0xc5,0xc5,0x00, + 0xc9,0xc9,0xc9,0x00,0xcb,0xcb,0xcb,0x00,0xcc,0xcc,0xcc,0x00,0xce,0xce,0xce,0x00, + 0xcf,0xcf,0xcf,0x00,0xd0,0xd0,0xd0,0x00,0xd1,0xd1,0xd1,0x00,0xd2,0xd2,0xd2,0x00, + 0xd4,0xd4,0xd4,0x00,0xd5,0xd5,0xd5,0x00,0xd6,0xd6,0xd6,0x00,0xd9,0xd9,0xd9,0x00, + 0xda,0xda,0xda,0x00,0xdb,0xdb,0xdb,0x00,0xdc,0xdc,0xdc,0x00,0xdd,0xdd,0xdd,0x00, + 0xe0,0xe0,0xe0,0x00,0xe1,0xe1,0xe1,0x00,0xe2,0xe2,0xe2,0x00,0xe3,0xe3,0xe3,0x00, + 0xe4,0xe4,0xe4,0x00,0xe6,0xe6,0xe6,0x00,0xe8,0xe8,0xe8,0x00,0xe9,0xe9,0xe9,0x00, + 0xea,0xea,0xea,0x00,0xeb,0xeb,0xeb,0x00,0xec,0xec,0xec,0x00,0xed,0xed,0xed,0x00, + 0xee,0xee,0xee,0x00,0xf0,0xf0,0xf0,0x00,0xf3,0xf3,0xf3,0x00,0xf4,0xf4,0xf4,0x00, + 0xf5,0xf5,0xf5,0x00,0xf7,0xf7,0xf7,0x00,0xf8,0xf8,0xf8,0x00,0xf9,0xf9,0xf9,0x00, + 0xfa,0xfa,0xfa,0x00,0xfb,0xfb,0xfb,0x00,0xfc,0xfc,0xfc,0x00,0xff,0xff,0xff,0x00, + 0xff,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00 +}; + +#define BMP_SIZE sizeof(gpi_bitmap) + +#endif diff --git a/reference/garmin_poi.gpi b/reference/garmin_poi.gpi new file mode 100644 index 0000000000000000000000000000000000000000..290d8923243e421b83d12bfeb357cb4631309bf7 GIT binary patch literal 7776 zcmeHLd2m!k8vlYEAsnJngdokJh%981_uk~qfg8yrd6|SvX2MJk0%9@=W5_vSGC6?E zL=X$aDoPN6TGR!K6|1;KbSWsVz$y!Zuz_6_EkKF_1xr?0MA%}xdwB762Vdd-yF1tv z_V?BA{l2rmZUBJ6csV?I9wkE%+`jDwfZk9yE2*-fDh5mX{krY!T9R^rR08+78!|@t&EeT0;D8NAKgE)}IloW4aUS3WC3q$0@ zw~DJbc$@0#szL;465b&|fj!CS-Pd^_tIO_E^6f0p6IdN51O`d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&Y@+;SU-ze9iO~BNs!FIwL3XN70j5tut@7qU2|}o!omi`8Y{d z#q}t7XZZaMF9d3*8}e~ln!+IyJgq_T21*glDYN29|_> zAGEZVm5p)FBsh@_Q&rVtPlOYn9y=~9`P^>v1SjPg89#2El91*ITkH=%^?X)VUb#2A z-#Bw-b-ZnuQl39P5}7mSxv4qP{gRlN-qU5*v!h48(603C`OsZ|Mt*I-EiUdse>gO= z4Lf1-0}qVr@_$`jz&N~OcBEI2@3hn+qf(5W};X-)jl~-WVqDAoP ztFOZ1#f#y!*It7qOP0XWrAuMivSskb8*jk!<;!8kiWRVOPMkOaCr_S)&dyFab?OwH zK7ATK`|LCL{PWM@i!Z)_GiT1gmtTGfXV0F6bLY;%`Sa)D>#x6t3l}cH#ful=(xppq z`SNA>=9_Qe+i$;xD_5?-)vH(GyYIe(@4x>Ze)!=B`0>Xd;rjLKaO1`e`01yg;O5Pn j@bk|wDl;P&m?aOV!`B6secE&t#BpYZ@r1N!?9Aa1MR literal 0 HcmV?d00001 diff --git a/reference/garmin_poi.gpx b/reference/garmin_poi.gpx new file mode 100644 index 000000000..2424b5d44 --- /dev/null +++ b/reference/garmin_poi.gpx @@ -0,0 +1,526 @@ + + + + + + 5058ROAD + ROAD CROSSING + ROAD CROSSING + Waypoint + + + 5066 + 5066 + 5066 + Waypoint + + + 5067 + 5067 + 5067 + Waypoint + + + 5096 + 5096 + 5096 + Waypoint + + + 5142 + 5142 + 5142 + Waypoint + + + 5144SUMMIT + Summit + Summit + Waypoint + + + 5148NANEPA + Nanepashemet Road Crossing + Nanepashemet Road Crossing + Waypoint + + + 5150TANK + WATER TANK + WATER TANK + Waypoint + + + 5156 + 5156 + 5156 + Waypoint + + + 5179DEAD + Dead End + Dead End + Waypoint + + + 5224 + 5224 + 5224 + Waypoint + + + 5229 + 5229 + 5229 + Waypoint + + + 5236BRIDGE + Bridge + Bridge + Waypoint + + + 5237 + 5237 + 5237 + Waypoint + + + 5239ROAD + Road + Road + Waypoint + + + 5252PURPLE + Purple Rock Hill + Purple Rock Hill + Waypoint + + + 5254 + 5254 + 5254 + Waypoint + + + 5258 + 5258 + 5258 + Waypoint + + + 5264 + 5264 + 5264 + Waypoint + + + 526708 + 526708 + 526708 + Waypoint + + + 526750 + 526750 + 526750 + Waypoint + + + 5267OBSTAC + Obstacle + Obstacle + Waypoint + + + 527614 + 527614 + 527614 + Waypoint + + + 527631 + 527631 + 527631 + Waypoint + + + 5278 + 5278 + 5278 + Waypoint + + + 5278ROAD + Road + Road + Waypoint + + + 5287WATER + Reservoir + Reservoir + Waypoint + + + 5289 + 5289 + 5289 + Waypoint + + + 5299DEAD + Dead End + Dead End + Waypoint + + + 5374FIRE + 5374FIRE + 5374FIRE + Waypoint + + + 5376 + 5376 + 5376 + Waypoint + + + 5376BRIDGE + Bridge + Bridge + Waypoint + + + 5376DEAD + Dead End + Dead End + Waypoint + + + 5376STREAM + Stream Crossing + Stream Crossing + Waypoint + + + 6006 + 600698 + 600698 + Waypoint + + + 6006BLUE + 6006BLUE + 6006BLUE + Waypoint + + + 6014MEADOW + 6014MEADOW + 6014MEADOW + Waypoint + + + 6016 + Bike Loop Connector + Bike Loop Connector + Waypoint + + + 6029 + 6029 + 6029 + Waypoint + + + 6042CROSS + Crossing + Crossing + Waypoint + + + 6053 + 6053 + 6053 + Waypoint + + + 6066 + 6066 + 6066 + Waypoint + + + 6067 + 6067 + 6067 + Waypoint + + + 6071 + 6071 + 6071 + Waypoint + + + 6073 + 6073 + 6073 + Waypoint + + + 6077LOGS + Log Crossing + Log Crossing + Waypoint + + + 6084 + 6084 + 6084 + Waypoint + + + 6121DEAD + Dead End + Dead End + Waypoint + + + 6130 + 6130 + 6130 + Waypoint + + + 6131 + 6131 + 6131 + Waypoint + + + 6153 + 6153 + 6153 + Waypoint + + + 6155DEAD + Dead End + Dead End + Waypoint + + + 6171 + 6171 + 6171 + Waypoint + + + 6176 + 6176 + 6176 + Waypoint + + + 6177 + 6177 + 6177 + Waypoint + + + 6181CROSS + Crossing + Crossing + Waypoint + + + 6272 + 6272 + 6272 + Waypoint + + + 6272.1 + 6272 + 6272 + Waypoint + + + 6278 + 6278 + 6278 + Waypoint + + + 6280 + 6280 + 6280 + Waypoint + + + 6283 + 6283 + 6283 + Waypoint + + + 6289 + 6289 + 6289 + Waypoint + + + 6297 + 6297 + 6297 + Waypoint + + + 6328 + 6328 + 6328 + Waypoint + + + 6353DEAD + Dead End + Dead End + Waypoint + + + 6354 + 6354 + 6354 + Waypoint + + + 635722 + 635722 + 635722 + Waypoint + + + 635783 + 635783 + 635783 + Waypoint + + + 6373 + 6373 + 6373 + Waypoint + + + 6634 + 6634 + 6634 + Waypoint + + + 6979 + 6979 + 6979 + Waypoint + + + 6997 + 6997 + 6997 + Waypoint + + + BEAR HILL + BEAR HILL TOWER + BEAR HILL TOWER + Waypoint + + + BELLEVUE + BELLEVUE + BELLEVUE + Waypoint + + + DARKHOLLPO + Dark Hollow Pond + Dark Hollow Pond + Waypoint + + + GATE14 + Gate 14 + Gate 14 + Waypoint + + + GATE16 + Gate 16 + Gate 16 + Waypoint + + + GATE17 + Gate 17 + Gate 17 + Waypoint + + + GATE19 + Gate 19 + Gate 19 + Waypoint + + + GATE21 + Gate 21 + Gate 21 + Waypoint + + + GATE24 + Gate 24 + Gate 24 + Waypoint + + + GATE5 + Gate 5 + Gate 5 + Waypoint + + + GATE6 + Gate 6 + Gate 6 + Waypoint + + + PANTHRCAVE + Panther Cave + Panther Cave + Waypoint + + + SHEEPFOLD + Sheepfold Parking Lot + Sheepfold Parking Lot + Waypoint + + + SOAPBOX + Soap Box Derby Track + Soap Box Derby Track + Waypoint + + diff --git a/reference/garmin_poi2.gpx b/reference/garmin_poi2.gpx new file mode 100644 index 000000000..1c5718aa0 --- /dev/null +++ b/reference/garmin_poi2.gpx @@ -0,0 +1,526 @@ + + + + + + 5058ROAD + ROAD CROSSING + ROAD CROSSING + Waypoint + + + 5066 + 5066 + 5066 + Waypoint + + + 5067 + 5067 + 5067 + Waypoint + + + 5096 + 5096 + 5096 + Waypoint + + + 5142 + 5142 + 5142 + Waypoint + + + 5144SUMMIT + Summit + Summit + Waypoint + + + 5148NANEPA + Nanepashemet Road Crossing + Nanepashemet Road Crossing + Waypoint + + + 5150TANK + WATER TANK + WATER TANK + Waypoint + + + 5156 + 5156 + 5156 + Waypoint + + + 5179DEAD + Dead End + Dead End + Waypoint + + + 5224 + 5224 + 5224 + Waypoint + + + 5229 + 5229 + 5229 + Waypoint + + + 5236BRIDGE + Bridge + Bridge + Waypoint + + + 5237 + 5237 + 5237 + Waypoint + + + 5239ROAD + Road + Road + Waypoint + + + 5252PURPLE + Purple Rock Hill + Purple Rock Hill + Waypoint + + + 5254 + 5254 + 5254 + Waypoint + + + 5258 + 5258 + 5258 + Waypoint + + + 5264 + 5264 + 5264 + Waypoint + + + 526708 + 526708 + 526708 + Waypoint + + + 526750 + 526750 + 526750 + Waypoint + + + 5267OBSTAC + Obstacle + Obstacle + Waypoint + + + 527614 + 527614 + 527614 + Waypoint + + + 527631 + 527631 + 527631 + Waypoint + + + 5278 + 5278 + 5278 + Waypoint + + + 5278ROAD + Road + Road + Waypoint + + + 5287WATER + Reservoir + Reservoir + Waypoint + + + 5289 + 5289 + 5289 + Waypoint + + + 5299DEAD + Dead End + Dead End + Waypoint + + + 5374FIRE + 5374FIRE + 5374FIRE + Waypoint + + + 5376 + 5376 + 5376 + Waypoint + + + 5376BRIDGE + Bridge + Bridge + Waypoint + + + 5376DEAD + Dead End + Dead End + Waypoint + + + 5376STREAM + Stream Crossing + Stream Crossing + Waypoint + + + 6006 + 600698 + 600698 + Waypoint + + + 6006BLUE + 6006BLUE + 6006BLUE + Waypoint + + + 6014MEADOW + 6014MEADOW + 6014MEADOW + Waypoint + + + 6016 + Bike Loop Connector + Bike Loop Connector + Waypoint + + + 6029 + 6029 + 6029 + Waypoint + + + 6042CROSS + Crossing + Crossing + Waypoint + + + 6053 + 6053 + 6053 + Waypoint + + + 6066 + 6066 + 6066 + Waypoint + + + 6067 + 6067 + 6067 + Waypoint + + + 6071 + 6071 + 6071 + Waypoint + + + 6073 + 6073 + 6073 + Waypoint + + + 6077LOGS + Log Crossing + Log Crossing + Waypoint + + + 6084 + 6084 + 6084 + Waypoint + + + 6121DEAD + Dead End + Dead End + Waypoint + + + 6130 + 6130 + 6130 + Waypoint + + + 6131 + 6131 + 6131 + Waypoint + + + 6153 + 6153 + 6153 + Waypoint + + + 6155DEAD + Dead End + Dead End + Waypoint + + + 6171 + 6171 + 6171 + Waypoint + + + 6176 + 6176 + 6176 + Waypoint + + + 6177 + 6177 + 6177 + Waypoint + + + 6181CROSS + Crossing + Crossing + Waypoint + + + 6272 + 6272 + 6272 + Waypoint + + + 6272.1 + 6272 + 6272 + Waypoint + + + 6278 + 6278 + 6278 + Waypoint + + + 6280 + 6280 + 6280 + Waypoint + + + 6283 + 6283 + 6283 + Waypoint + + + 6289 + 6289 + 6289 + Waypoint + + + 6297 + 6297 + 6297 + Waypoint + + + 6328 + 6328 + 6328 + Waypoint + + + 6353DEAD + Dead End + Dead End + Waypoint + + + 6354 + 6354 + 6354 + Waypoint + + + 635722 + 635722 + 635722 + Waypoint + + + 635783 + 635783 + 635783 + Waypoint + + + 6373 + 6373 + 6373 + Waypoint + + + 6634 + 6634 + 6634 + Waypoint + + + 6979 + 6979 + 6979 + Waypoint + + + 6997 + 6997 + 6997 + Waypoint + + + BEAR HILL + BEAR HILL TOWER + BEAR HILL TOWER + Waypoint + + + BELLEVUE + BELLEVUE + BELLEVUE + Waypoint + + + DARKHOLLPO + Dark Hollow Pond + Dark Hollow Pond + Waypoint + + + GATE14 + Gate 14 + Gate 14 + Waypoint + + + GATE16 + Gate 16 + Gate 16 + Waypoint + + + GATE17 + Gate 17 + Gate 17 + Waypoint + + + GATE19 + Gate 19 + Gate 19 + Waypoint + + + GATE21 + Gate 21 + Gate 21 + Waypoint + + + GATE24 + Gate 24 + Gate 24 + Waypoint + + + GATE5 + Gate 5 + Gate 5 + Waypoint + + + GATE6 + Gate 6 + Gate 6 + Waypoint + + + PANTHRCAVE + Panther Cave + Panther Cave + Waypoint + + + SHEEPFOLD + Sheepfold Parking Lot + Sheepfold Parking Lot + Waypoint + + + SOAPBOX + Soap Box Derby Track + Soap Box Derby Track + Waypoint + + diff --git a/testo b/testo index bc0cf02cf..3bdc50732 100755 --- a/testo +++ b/testo @@ -1228,5 +1228,14 @@ compare ${REFERENCE}/tomtom_poi.asc ${TMPDIR}/tomtom_poi.asc ${PNAME} -i tomtom_itn -f ${REFERENCE}/route/tomtom_itn.itn -o tomtom_itn -F ${TMPDIR}/tomtom_itn.itn compare ${REFERENCE}/route/tomtom_itn.itn ${TMPDIR}/tomtom_itn.itn +# +# Garmin Points of Interest "garmin_poi" (.gpi) +# +${PNAME} -i garmin_poi -f ${REFERENCE}/garmin_poi.gpi -o gpx -F ${TMPDIR}/garmin_poi.gpx +compare ${REFERENCE}/garmin_poi.gpx ${TMPDIR}/garmin_poi.gpx +${PNAME} -i gpx -f ${REFERENCE}/garmin_poi.gpx -o garmin_poi -F ${TMPDIR}/garmin_poi.gpi +${PNAME} -i garmin_poi -f ${TMPDIR}/garmin_poi.gpi -o gpx -F ${TMPDIR}/garmin_poi2.gpx +compare ${REFERENCE}/garmin_poi2.gpx ${TMPDIR}/garmin_poi2.gpx + exit 0 -- 2.30.2